<?php

namespace app\admin\validate\music;

use think\Validate;

class MusicSelectedPackTypeValidate extends Validate
{
    protected $rule=array(
        "id"=>"require",
        "title"=>"require",
        "sort"=>"require",
        "status"=>"require"
    );
    protected $message=array(
        "id|require"=>"id为空",
        "title|require"=>"标题不能为空",
        "sort|require"=>"请输入排序值",
        "status|require"=>"请选择是否展示",
    );
    protected $scene=array(
        "create"=>array("title","sort","status"),
        "update"=>array("id","title","sort","status"),
    );
}